<%-- 
    Document   : DisplayListTour
    Created on : Oct 29, 2011, 11:42:08 PM
    Author     : MrKoi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%><center>
<span style="font-size: 23px;color: #343434">List Tours</span>
</center>
<table width="400" cellspacing="6">
    <%
    int i;
    int j;
    for(i=1;i<12;i++){
       %>
    <tr><%
             for(j=0;j<3;j++){    
        %>
        <td style="background:#f7f6f6;margin:6px;" align="center">
            <img src="Images/photo6.jpg" width="150" style="padding: 5px; border-color: #3333ff;border-width: thin"/><br>
            Car name o day<br>
            So cho ngoi: 4<br>
            Price: 80$/day<br>
            <a href="#">Details</a> | <a href="#">Rental</a>
            
            </td>
        <%
        i++;
     }%>
    </tr>
    <%
    i--;}%>             
</table>
<br>
    <%
    int pageIndex;
    int totalPage=10;
    try{
pageIndex=Integer.parseInt(request.getParameter("pageIndex"));
    }catch(Exception e){
        pageIndex=1;
        
    }
if(pageIndex==0){
    pageIndex=1;
}
%>
<center>
<a href="index.jsp?page=homepage&pageIndex=1>">First</a> | <a href="index.jsp?page=homepage&pageIndex=<%=(pageIndex-1)%>"><%=(pageIndex-1)%></a> | <a href="index.jsp?page=homepage&pageIndex=<%=pageIndex%>"><%=pageIndex%></a> | <a href="index.jsp?page=homepage&pageIndex=<%=(pageIndex+1)%>"><%=(pageIndex+1)%></a> | <a href="index.jsp?page=homepage&pageIndex=<%=totalPage%>">Last</a>
</center>
